package com.shtel.bss.saas.tenant.manager;

import com.shtel.bss.saas.tenant.entity.SysGlobalAuth;
import com.shtel.bss.saas.tenant.entity.SysTenantAuthJoin;

import java.util.List;

/**
 * 租户权限表管理
 * @author xiezhiwei 2020-02-05 22:27
 */
public class SysTenantAuthJoinManager {

    public static void saveEntity(SysTenantAuthJoin sysGlobalAuth){
        SysTenantAuthJoin.repository().save(sysGlobalAuth);
    }

    public static List<SysTenantAuthJoin> selectEntity(SysTenantAuthJoin sysGlobalAuth){
        return SysTenantAuthJoin.repository().selectEntity(sysGlobalAuth);
    }
    public static void updateEntity(SysTenantAuthJoin sysGlobalAuth){
        SysTenantAuthJoin.repository().update(sysGlobalAuth);
    }

    public static void removeEntity(SysTenantAuthJoin sysTenantAuthJoins){
        SysTenantAuthJoin.repository().remove(sysTenantAuthJoins);
    }
}